#!/bin/bash

### BEGIN INIT INFO
# Provides: hzvirt 
# Required-Start: 
# Should-Start:	virtualbox-ose
# Required-Stop:
# Default-Start: 4 5
# Default-Stop: 0 1 6
# Short-Description: Hzvirt 
# Description: Start Hzvirt
### END INIT INFO 

case "$1" in
    start)
	startx /usr/share/hzvirt/hzvault.rb
        echo
        ;;
    stop)
        msg TEXT "HZVAULT shutting down."
        # Add anything that needs to happen at shutdown here.
	killall -9 X 
        echo
        ;;
    *)
        echo "Usage: hzvault {start|stop}"
        exit 1
        ;;
esac

